package com.zsfz.dp.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {


    /**
     *
     * @param id
     * @param password
     * @return
     *
     * 登录
     */
    @Select("Select _user_id from  _tb_users where user_id = #{id} and user_password = #{password}" )
    String login(String id,String password);


    /**
     *
     * @param userId
     * @param userGroupId
     * @param userIP
     * @param userPassword
     * @return
     *
     * 注册-插入用户表
     */
    int registerToUserTable(String userId,String userGroupId,String userIP,String userPassword);

    int registerToGroup(String groupId,String leader,String phone);


}
